package main.java.tutorial.springmvc.model;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.NotEmpty;



public class PersonForm {
	
	@NotEmpty
	private String name;
	
	@NotNull
	@Size(min=3)
	private String surname;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getSurname() {
		return surname;
	}
	public void setSurname(String surname) {
		this.surname = surname;
	}
	   
	   
	   
	}

